package cn.pomelo.album.mapper;

import cn.pomelo.album.model.Image;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ImageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Image record);

    int insertSelective(Image record);

    Image selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Image record);

    int updateByPrimaryKey(Image record);

    List<Image> selectByUserid(String folder, String userid);

    List<String> selectFolderByUserid(String userid);

    int deleteByFolder(String folder);


}